package com.zuikaku.pojo;

import com.zuikaku.util.TimeUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AccessLogDO {
    private String title;
    private String url;
    private String method;
    private Integer httpCode;
    private String body;
    private Date createTime;
    private String userId;
    private String city;

    @Override
    public String toString() {
        return "AccessLogDO{" +
                "title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", httpCode=" + httpCode +
                ", body='" + body + '\'' +
                ", createTime=" + TimeUtil.formatTime(createTime) +
                ", userId='" + userId + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
